package cn.itlaobing.train.service.Imp;

import cn.itlaobing.train.dao.TrainDao;
import cn.itlaobing.train.service.TrainService;

import java.sql.SQLException;

/**
 * Created by Administrator on 2017/11/10.
 */
public class TrainServiceImp implements TrainService {
    TrainDao trainDao = new TrainDao();
    @Override
    public float queryBytrainNumAndTrainStation(String trainNum, String beginStation, String endStation) {
        float sitePrice=0;

        try {
            sitePrice=trainDao.queryBytrainNumAndTrainStation(trainNum,beginStation,endStation);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return sitePrice;
    }
}
